import Layout from '@/layout'

/**
 * 资产的路由
 *
 */
const routes = [{
    path: '/asset/auditConfigNodes',
    component: Layout,
    hidden: true,
    children: [
        {
            path: 'index/:configId(\\d+)',
            component: () => import('@/views/asset/settings/auditConfig/nodes/index'),
            name: 'AssetAuditConfigNodes',
            meta: { title: '修改审批流程', activeMenu: '/asset/assetSetting/auditProcess' }
        }
    ]
},{
    path: '/asset/assetManage',
    component: Layout,
    hidden: true,
    children: [
        {
            path: 'assetList',
            component: () => import('@/views/asset/assetItem/index'),
            name: 'AssetManageList',
            meta: { title: '资产清单' }
        },
       
        {
            path: 'assetStorage',
            component: () => import('@/views/asset/apply/in/index'),
            name: 'AssetManageStorage',
            meta: { title: '资产入库' }
        },
        {
            path: 'dispatch',
            component: () => import('@/views/asset/apply/dispatch/index'),
            name: 'AssetManageDispatch',
            meta: { title: '资产派发' }
        },
        {
            path: 'borrow',
            component: () => import('@/views/asset/apply/borrow/index.vue'),
            name: 'AssetManageBorrow',
            meta: { title: '资产借出' }
        },
        {
            path: 'return',
            component: () => import('@/views/asset/apply/dispatch/return/index.vue'),
            name: 'AssetManageReturn',
            meta: { title: '资产归还' }
        },
        {
            path: 'assetTransfer',
            component: () => import('@/views/asset/apply/transfer/index'),
            name: 'AssetManageTransfer',
            meta: { title: '资产调拨' }
        },
        {
            path: 'assetRepair',
            component: () => import('@/views/asset/apply/repair/index'),
            name: 'AssetManageRepair',
            meta: { title: '资产维修' }
        },
        {
            path: 'assetHandle',
            component: () => import('@/views/asset/apply/handle/index'),
            name: 'AssetManageHandle',
            meta: { title: '资产处理' }
        },
        {
            path: 'assetInventory',
            component: () => import('@/views/asset/inventoryApply/index'),
            name: 'AssetManageInventory',
            meta: { title: '资产盘点' }
        }
    ]
},
    {
        path: '/asset/assetSetting',
        component: Layout,
        hidden: true,
        children: [{
            path: 'classify',
            component: () => import('@/views/asset/settings/classify/index'),
            name: 'AssetSettingClassify',
            meta: { title: '资产分类' }
        },{
            path: 'warehouse',
            component: () => import('@/views/asset/settings/warehouse/index'),
            name: 'AssetSettingWarehouse',
            meta: { title: '资产仓库' }
        },{
            path: 'assetTag',
            component: () => import('@/views/asset/settings/tag/index'),
            name: 'AssetSettingTag',
            meta: { title: '资产标签' }
        },{
            path: 'auditProcess',
            component: () => import('@/views/asset/settings/auditConfig/index'),
            name: 'AssetSettingAuditConfig',
            meta: { title: '资产流程审批' }
        }, {
            path: 'file',
            component: () => import('@/views/asset/settings/file/index'),
            name: 'AssetSettingFile',
            meta: { title: '资产档案' }
        },
            {
                path:'depreciation',
                component:()=>import('@/views/asset/settings/depreciation/index'),
                name:"assetSettingDepreciation",
                meta:{title:'资产折旧'}
            }
        ]
    },
    {
        path: '/asset/dataReport',
        component: Layout,
        hidden: true,
        children: [{
            path: 'category',
            component: () => import('@/views/asset/report/category/index'),
            name: 'AssetDataReportCategory',
            meta: { title: '资产分类报表' }
        }]
    },];
export default routes;